const express = require("express");
const pool = require("../db");
const router = express.Router();
//接口  byd——index
router.get("/", (req, res) => {
  pool.query("select * from byd_index", (err, r) => {
    if (err) {
      throw err;
    }
    console.log(r);
    res.send(r);
  });
});
module.exports = router;
